package com.ysstech.reportworld.entity;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
/**
 * <p>
 * 表对应索引信息
 * </p>
 *
 * @author lishuangliang
 * @since 2022-11-28
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("report_world_table_indexed")
public class TableIndexed extends Model<TableIndexed> {

    private static final long serialVersionUID = 1L;

    @TableId("ID")
    private String id;

    /**
     * 关联表的主键
     */
    @TableField("TABLE_ID")
    private String tableId;

    /**
     * 索引字段名称
     */
    @TableField("INDEXED_COLUMN_NAME")
    private String indexedColumnName;

    /**
     * 索引名称
     */
    @TableField("INDEXED_NAME")
    private String indexedName;

    /**
     * 索引字段顺序
     */
    @TableField("INDEXED_COLUMN_SEQUENCE")
    private Integer indexedColumnSequence;

    /**
     * 索引类型
     */
    @TableField("INDEXED_TYPE")
    private Integer indexedType;

    /**
     * 索引字段排序方式 ASC 或者 DESC
     */
    @TableField("INDEXED_ASC_DESC")
    private String indexedAscDesc;

    /**
     * 索引顺序
     */
    @TableField("INDEXED_SEQUENCE")
    private Integer indexedSequence;

    /**
     * 读取Execl时候的文件名称
     */
    @TableField("FILE_NAME")
    private String fileName;


    @TableField("STATUS")
    private Integer status;

    @TableField("ADD_TIME")
    private LocalDateTime addTime;

    @TableField("ADD_USER")
    private String addUser;

    @TableField("EDIT_TIME")
    private LocalDateTime editTime;

    @TableField("EDIT_USER")
    private String editUser;

    @TableField("DELETE_REASON")
    private String deleteReason;
    /**
     * 索引类型
     */
    @TableField(exist = false)
    private String strIndexedType;

    @TableField(exist = false)
    private String strStatus;
    @Override
    protected Serializable pkVal() {
        return null;
    }

}
